/*
 * @Author: Arcanum
 * @Copyright: 2010 by Mastercoding.NET
 * @Date: 24. July 2010
 * @File: mainmenu.cpp
 */

#include "TGALoader.h"


CTGATexture mm_bg;
CTGATexture mm_pointer;
int mm_selected = 4;

void mcShowMenu(void)
{
    sceGumTranslate(&translate);

    sceGuTexMode(GU_PSM_8888, 0, 0, true);
    sceGuTexImage(0, 512, 256, 480, mm_bg.Image());
    sceGumDrawArray(GU_TRIANGLE_STRIP, GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D,
                4, 0, splash1);


    //BANANA-POINTER
    sceGuTexFunc(GU_TFX_MODULATE, GU_TCC_RGBA);
    sceGuEnable(GU_BLEND);
    sceGuBlendFunc(GU_ADD, GU_SRC_ALPHA, GU_ONE_MINUS_SRC_ALPHA, 0, 0);

    float schiebung = (48+(mm_selected-1)*34)*hpx;
    ScePspFVector3 pointvec = {18*wpx, schiebung, 0.1f};
    sceGumTranslate(&pointvec);

    sceGuTexImage(0, 256, 256, mm_pointer.Width(), mm_pointer.Image());
    sceGumDrawArray(GU_TRIANGLE_STRIP, GU_TEXTURE_32BITF|GU_COLOR_8888|GU_VERTEX_32BITF|GU_TRANSFORM_3D,
                4, 0, mmpointer);

    sceGuDisable(GU_BLEND);
    sceGuTexFunc(GU_TFX_DECAL, GU_TCC_RGB);
}